#include "qboomanimation.h"
#include <QtGui>
#define PI 3.141592653589797
#include <cmath>

int QBoomAnimation::duration()const
{
    return 100;
}
void QBoomAnimation::updateCurrentTime ( int currentTime )
{
    currentTime =  (int)(sin(2 * PI + 0.01*2.2*PI/3 * currentTime)*100);
//    QString str;
    //QMessageBox::about(0, "d", str.setNum(currentTime));
    m_wdgbooble->setTransparency(m_wdgbooble->getTransparency()- currentTime/2 );
    currentTime = 25 + currentTime/4;
    m_wdgbooble->setRadius(currentTime);
}
